Delivery - Create (Pay With Cash)
TestingPOST
/partner/delivery/createLast modified: 6 months ago
Maintainer: Not configured
Request
Body Params application/json
customer
object
required
external_id
string
required
firstname
string
required
lastname
string
required
phone
string
required
email
string
required
external_id
string
required
sku
string
required
amount
integer
required
address
object (Order Address)
required
billing
object (Billing Address)
required
shipping
object (Shipping Address)
required
Example
{
"customer": {
"external_id": "{{customer_external_id}}",
"firstname": "John",
"lastname": "Due",
"phone": "+905180001923",
"email": "[email protected]"
},
"external_id": "{% faker datatype.uuid %}",
"sku": "GAU",
"amount": 3,
"address": {
"billing": {
"company_name": "Şirket Adı",
"fullname": "John Due",
"invoice_type": "Individual",
"city": "İstanbul",
"county": "Beykoz",
"district": "Acarlar Mah.",
"address": "No: 37/4"
},
"shipping": {
"company_name": "Şirket Adı",
"fullname": "John Due",
"city": "İstanbul",
"county": "Beykoz",
"district": "Acarlar Mah.",
"address": "No: 37/4"
}
}
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
total
number
required
items
array [object {2}]
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 1089,
"guid": "1C19F9BD-2FCB-47C6-BC32-126CE4288C85",
"order_code": "RHI1GCW3",
"external_id": null,
"channel": "web",
"tx_type": "delivery",
"price_token": null,
"price": 70.01,
"tax": 0,
"total": 70.01,
"currency_rate": 1,
"currency_total": 70.01,
"status_id": 1,
"status_name": "Created",
"order_at": "2023-12-11T11:21:46+03:00",
"items": [
{
"item_currency_id": 1000004,
"item_currency_name": "Gold",
"product_id": 3000001,
"product_name": "Gold - Digital storage",
"product_weight": 1,
"spot_price": 0,
"price": 0,
"tax_rate": 0,
"tax": 0,
"amount": 3,
"total": 70.01,
"currency_id": 1000003,
"currency_rate": 1,
"currency_total": 70.01
}
],
"customer": {
"external_id": "1710174559",
"firstname": "Enver Engin",
"middlename": null,
"lastname": "Bütün",
"fullname": "Enver Engin Bütün",
"email": "[email protected]",
"phone": "+902123001203",
"gender": "M",
"identity_number": "21169718780",
"birthdate": "1985-08-02"
}
},
"success": true,
"code": 0,
"message": ""
}
Last modified: 6 months ago