- Partner
- Genel Bakış
- Buy
- Sell
- Customers
- Balances
- Card Storage
- Delivery
- Product PricesGET
- Get OrdersGET
- Get OrderGET
- Get Order (Alternative)POST
- Partner LegalPOST
- Order StatussesGET
- E-Commerce API
- Catalog
- Customers
- Customer Address
- Checkout
- Legal
- WS
- Minted PricesGET
Delivery - Create (Pay With Card Payment)
Testing
Testing Env
Testing Env
POST
https://api.staging.mintedconnect.com/partner/delivery/create
Last modified:2024-07-18 15:22:08
Maintainer:Not configured
Request
Authorization
Provide your encrypted digest scheme data in the
Authorization
header when making requests to protected resources.Example:
Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
Header Params
x-client-id
string
required
Default:
web
api-version
string
optional
Default:
3
Accept-Language
string
optional
Default:
tr
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
payment_type
string
required
payment
object
required
card_holder
string
required
card_expiry
string
required
card_cvv
string
required
customer_ip
string
required
force_3d
boolean
required
card_number
string
required
redirect_url
string
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": 1,
"payment_type": "credit-card",
"payment": {
"card_holder": "John Due",
"card_expiry": "05/28",
"card_cvv": "000",
"customer_ip": "88.241.50.85",
"force_3d": true,
"card_number": "4048095010857528",
"redirect_url": "http://localhost/callback"
},
"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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.staging.mintedconnect.com/partner/delivery/create' \
--header 'x-client-id;' \
--header 'api-version: 3' \
--header 'Accept-Language: tr' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer": {
"external_id": "",
"firstname": "John",
"lastname": "Due",
"phone": "+905180001923",
"email": "[email protected]"
},
"external_id": "{% faker datatype.uuid %}",
"sku": "GAU",
"amount": 1,
"payment_type": "credit-card",
"payment": {
"card_holder": "John Due",
"card_expiry": "05/28",
"card_cvv": "000",
"customer_ip": "88.241.50.85",
"force_3d": true,
"card_number": "4048095010857528",
"redirect_url": "http://localhost/callback"
},
"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"
}
}
}'
Responses
🟢200OK
application/json
Body
data
object
required
total
number
required
items
array [object {2}]
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"id": 1094,
"guid": "D9261855-4120-4F60-8102-BE8E9AC7F0C4",
"order_code": "VLYMUJWG",
"external_id": "d0d04ffd-3e81-4df2-86d9-ccf78928524e",
"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-11T12:24:05+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"
},
"payment": {
"redirect_url": "http://mintedconnect.local/pay/5QIM3D4yq1W2URxoVKrWjNlEj8DjcPFKEoH8blgK2pQKMqyaZEunEZACmadgzJH8RF2ii3ROU5BIRHTTM0vXMOP4gFWjXFsEwP8ZG4IOYy31WwdMDugAgE4EhCW3ejaD/redirect",
"token": "dw1rBOKTIjuRwYtRoTEeJUuj7Wh1SshjdBDzYvQgGhuA96zFzt9WWVMzo6QBLx2axjIjX092kHFaNbHFWxIVR61gMDr9bk7HbadtdIDMEUHO7S3DFv03EIbUgFSQ1Xhi",
"is_3d": true,
"auth_mode": "auth",
"amount": 70.01,
"state": "new",
"comission": 2.02,
"total": 72.03,
"details": []
}
},
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-07-18 15:22:08