Skip to content

Notifications

Notification authentication

Qliro Checkout keeps the configuration on its side to a minimum. Calls to push URLs such as MerchantCheckoutStatusPushUrl therefore carry no authentication. Supply a URL that contains authentication data and is valid only for a short time.

Example: https://merchant.com/api/push/token=token_12-34-aa-bb, where token_12-34-aa-bb is a dynamic token valid for a couple of hours.

Order management status

Qliro Checkout sends a notification to MerchantOrderManagementStatusPushUrl whenever the status of an Admin API request changes.

Request

MethodPOST
EndpointMerchantOrderManagementStatusPushUrl
BodyJSON Object

Body parameters

ParameterTypeDescription
OrderIDLongThe Qliro Checkout order ID
MerchantReferenceStringThe MerchantReference of the order
PaymentTransactionIdLongA reference to the specific request.
AmountDecimalThe amount of this specific transaction.
CurrencyStringThree uppercase characters, in accordance with ISO 4217.
StatusStringThe new request status.
PaymentTypeStringThe type of transaction
ProviderTransactionIdStringThe transaction ID from the payment provider.
ProviderResultCodeStringThe request result from the payment provider.
ProviderResultDescriptionStringDescription of the ProviderResultCode.
OriginalPaymentTransactionIdStringRefers to the original payment the customer made.
PaymentReferenceLongA unique reference that represents a successful shipment.
TimeStampStringThe date and time of the status change.
ErrorCodeStringError code from Qliro.
ErrorCodeDescriptionStringA user-friendly description of the error.

ProviderResultDescription errors

OperationPaymentMethodErrorReason
CancelOrderCreditCardTransaction Declined (referencing transaction does not match)The bank has already released the amount.
AnyCreditCard, Trustly, PayPalDuplicate TransactionInterruptions between Qliro Checkout and the provider. The calling party can retry the call.

Request example

{
  "OrderId": 67890,
  "MerchantReference": "MerchantRef1234",
  "PaymentTransactionId": 12345,
  "Amount": 550,
  "Currency": "SEK",
  "Status": "Success",
  "PaymentType": "Capture",
  "ProviderTransactionId": "8a82944a5a8ee61d015aa44c44787ead",
  "ProviderResultCode": "000.100.110",
  "ProviderResultDescription": "Request successfully processed in Merchant in Integration Test Mode",
  "OriginalPaymentTransactionId": "67890",
  "PaymentReference": 123456,
  "Timestamp": "2016-03-03T11:43:05.567"
}

Response

Respond to the notification with the JSON below. If Qliro Checkout does not receive this response, it retries immediately. If that retry fails, it schedules ten more attempts at 2 seconds, 5 seconds, 10 seconds, 30 seconds, 1 minute, 2 minutes, 30 minutes, 1 hour, 24 hours and 3 days. If the final retry gets no response, Qliro Checkout registers the notification as an error.

{
  "CallbackResponse": "received"
}

Merchant saved credit card

After the customer completes the purchase, you receive a status notification on MerchantOrderManagementStatusPushUrl. If the customer paid with a card, Qliro Checkout also sends a card information notification to MerchantSavedCreditCardPushUrl.

Request

MethodPOST
EndpointMerchantSavedCreditCardPushUrl
BodyJSON Object

Body parameters

ParameterTypeDescription
OrderIdLongThe Qliro Checkout order ID
IdGuidThe merchant saved credit card ID
CardBinStringThe card BIN
CardLast4DigitsStringThe last 4 digits of the card
CardExpiryYearIntThe card expiry year
CardExpiryMonthIntThe card expiry month
CardBrandNameStringOne of Visa, Mastercard, Amex, Unknown
TimeStampDatetimeThe date and time the merchant saved credit card was registered

Request example

{
  "OrderId": "12345",
  "Id": "10B066CC-F317-4CD1-9087-8CF06901918F",
  "CardBin": "454225",
  "CardLast4Digits": "3964",
  "CardExpiryYear": "2020",
  "CardExpiryMonth": "6",
  "CardBrandName": "Visa",
  "Timestamp": "2019-03-03T11:43:05.567"
}

Response

Respond to the notification with the JSON below. If Qliro Checkout does not receive this response, it retries immediately. If that retry fails, it schedules ten more attempts at 2 seconds, 5 seconds, 10 seconds, 30 seconds, 1 minute, 2 minutes, 30 minutes, 1 hour, 24 hours and 3 days.

{
  "CallbackResponse": "received"
}