This endpoint is used to handle the one-time and recurring payment transactions to add tips.
Compared to the older model, the new input model requires just a few parameters, as explained in detail below.
This endpoint is used to handle the one-time and recurring payment transactions to add tips.
200: OK Success Response 400: Bad Request Invalid Input 400: Bad Request Invalid Total Amount 400: Bad Request Newspaper configuration settings error 400: Bad Request Subscription not found 400: Bad Request Subscriber Data not found 400: Bad Request Payment Method not found 400: Bad Request Payment Method Type is not allowed 400: Bad Request Comp Sub not allowed to make payments 400: Bad Request Currency empty in subscription 400: Bad Request Invalid Subscription Status 400: Bad Request Payment was made in the last 24 hours 400: Bad Request Failed to create Payment event 400: Bad Request Authorized funds has failed 400: Bad Request Failed when Processing Circ System 400: Bad Request Update Subscription Data failed 400: Bad Request Update Subscription PaymentMethodId failed 400: Bad Request Exceeded session validation attempts 400: Bad Request Surcharge for incorrect payment method 400: Bad Request Authorization is missing 400: Bad Request X-SourceSystem is missing 401: Unauthorized Invalid Source System 401: Unauthorized Invalid authorization 500: Internal Server Error Internal Server Error 400: Bad Request Payment was modified in the last 24 hours 400: Bad Request To set up an auto renew tip, the subscription has to be on EzPay. 400: Bad Request Tip amount exceeds the maximum allowed 400: Bad Request Capture funds has failed 400: Bad Request Update transaction failed
Copy {
"Code": 200,
"Errors": [],
"Result": {
"EventId": 0
},
"SessionId": "string",
"RequestId": "string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The Total Amount is invalid.",
"Code":"Payments_29",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Error getting newspaper configuration settings",
"Code":"Payments_18",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Subscription not found.",
"Code":"Payments_03",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"SubscriberData not found.",
"Code":"Payments_04",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Payment Method not found.",
"Code":"Payments_05",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Payment Method Type is not allowed.",
"Code":"Payments_06",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"COMP subscription are not allowed to make payments",
"Code":"Payments_27",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The currency is empty in subscription.",
"Code":"Payments_23",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Invalid subscription status",
"Code":"Payments_19",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The subscription already made a payment over the last 24 hours",
"Code":"Payments_13",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Failed to create Payment event.",
"Code":"Payments_02",
"Type":{
"Id":1,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Authorized funds has failed.",
"Code":"Payments_09",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Failed when Processing Circ System.",
"Code":"Payments_10",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Update Subscription Data failed.",
"Code":"Payments_20",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Update Subscription Payment Method Id failed.",
"Code":"Payments_21",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The amount of retries to validate your payment session reached the maximum allowed",
"Code":"Payments_26",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The surcharge amounts only apply for Credit Card payment methods",
"Code":"Payments_16",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"error": "Authorization is missing."
}
Copy {
"error": "X-SourceSystem is missing."
}
Copy {
"error": "Invalid Source System."
}
Copy {
"error": "Invalid authorization."
}
Copy {
"error": "Something went wrong. Please try again later."
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The payment method was already modified over the last 24 hours.",
"Code":"Payments_32",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"To set up an auto renew tip the subscription has to be on EzPay.",
"Code":"Payments_31",
"Type":{
"Id":1,
"Code":"NotProcessingAllowed"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"The tip amount exceeds the maximum allowed.",
"Code":"Payments_17",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Capture funds has failed.",
"Code":"Payments_11",
"Type":{
"Id":0,
"Code":"Validation"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}
Copy {
"Code":400,
"Errors":[
{
"Message":"Update transaction failed.",
"Code":"Payments_12",
"Type":{
"Id":2,
"Code":"Processing"
},
"ErrorSource":null
}
],
"Result":null,
"SessionId":"string",
"RequestId":"string"
}