Card Payment Buy (with card number)
TestingPOST
/partner/order/digital/buyLast modified: a year ago
Maintainer: Not configured
Request
Header Params
api-version
string
optional
Example:
2
Body Params application/json
price_token
string
required
Optional value
currency_code
enum<string>
optional
Allowed values:
GBPTRYUSDEUR
Default:
GBP
external_id
string
optional
customer
#/definitions/589981required
items
array [object {2}]
required
amount
integer
required
sku
string
required
payment_type
enum<string>
required
Allowed value:
creditcard
payment
#/definitions/787897required
Example
{
"price_token": "{{price_token}}",
"external_id": "HYAQA0171{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}{% faker random.alphaNumeric %}",
"customer": {
"external_id": "{{external_customer_id}}",
"firstname": "Mehmet",
"middlename": "",
"lastname": "Gülbilge",
"email": "[email protected]",
"phone": "+905322808035",
"gender": "M",
"identity_number": "12345677938",
"birthdate": "1970-01-31"
},
"items": [
{
"sku": "GAU",
"amount": 1
}
],
"paymenttype": "creditcard",
"payment": {
"card_holder": "John Due",
"card_number": "4048095010857528",
"card_expiry": "05/28",
"card_cvv": "000"
}
}
Request samples
Responses
OK(200)
Parameter Error(422)
Forbidden(403)
Parameter Error(New Customer)(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
order_code
array[string]
required
guid
array[string]
required
price
number
required
tax
integer
required
total
number
required
order_at
string
required
orders
$ref(#/definitions/549775)[]
required
payment
#/definitions/787914required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"order_code": [
"9YMEK5RB"
],
"guid": [
"71E174B7-C7AD-47FB-836E-3895FF41D4F5"
],
"price": 559.4,
"tax": 0,
"total": 559.4,
"order_at": "2023-05-31 03:16:45",
"orders": [
{
"guid": "71E174B7-C7AD-47FB-836E-3895FF41D4F5",
"order_code": "9YMEK5RB",
"external_id": "HYAQA0171v96o",
"type": "Buy",
"price": 559.4,
"tax": 0,
"total": 559.4,
"currency_rate": 1,
"currency_total": 559.4,
"status_name": "Pending",
"order_at": "31-05-2023 03:16",
"currency_code": "GBP",
"items": [
{
"product_id": 3000001,
"product_name": "Gold - Digital storage",
"spot_price": 50.85,
"price": 55.94,
"tax_rate": 0,
"tax": 0,
"amount": 10,
"total": 559.4,
"sku": "GAU"
}
],
"customer": null
}
],
"payment": {
"status": "success",
"payment_reference": "HYAQA01373",
"card_number": "453809******3922",
"redirect_3d_link": "https://partner.test.mintedconnect.com/pay/24xEV8M0DD58NeWDBvQNhHvqxjKarTek/redirect"
}
},
"success": true,
"code": 0,
"message": ""
}
Last modified: a year ago