Create a new payment request
Changed onCreate a new payment request
Request
- Base URLhttps://core.quidkey.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"merchant_id": "550e8400-e29b-41d4-a716-446655440000",
"customer": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "07123456789"
},
"billingAddress": {
"address_line1": "12 West Common Drive",
"address_line2": "Flat 1",
"apartment": "Apt 5B",
"city": "London",
"state_province": "Greater London",
"country": "GB",
"postal_code": "SE1 1AA",
"company_name": "Acme Ltd"
},
"amount": 19.99,
"currency": "GBP",
"payment_reference": "ORDER123",
"order_id": "1140",
"locale": "en_GB",
"platform": "WooCommerce",
"device_type": "mobile",
"external_payment_request_id": "u0nwmSrNntjIWozmNslK5Tlq",
"group": "rZNvy+1jH6Z+BcPqA5U5BSIcnUavBha3C63xBalm+xE=",
"gid": "gid://shopify/PaymentSession/u0nwmSrNntjIWozmNslK5Tlq",
"selected_bank_id": "38c39d03-8df3-4980-b0a8-7e283c8c62dd",
"session_id": "4B2dxmle3vGgimS4deUX3+2PgLF2+/0ZWnNsNSZcgdU=",
"success_url_redirect": "https://storename.com/success",
"fail_url_redirect": "https://storename.com/failure"
}Response
Success
Example response
{
"success": true,
"data": {
"payment_link": "https://example.com/pay/abc123"
}
}Changes
- breaking
the
/request property's minLength was increased from0to2 - breaking
the
request property's minLength was increased from0to3 - breaking
added the pattern
^[A-Za-z]{2}$to the request property/ - breaking
added the pattern
^[A-Za-z]{3}$to the request property - breaking
the
/response's property type changed fromstringto no type for status - breaking
removed the success response with the status
- warning
the
/request property's maxLength was set to2 - warning
the
request property's maxLength was set to3 - warning
removed the optional property
/from the response with the status - info
added the new optional request property
- info
added the new optional request property
- info
added the optional property
/to the response with the status - info
added
subschema #1subschema #2to the/response propertyallOflist for the response status - info
added the success response with the status
- breaking
- info
endpoint added
- info