Minted Connect
  1. Partner - B2B
Minted Connect
Partner
  • Partner
  • E-Commerce API
  • Genel Bakış
    • Genel Bakış
    • Partner cüzdan entegrasyonu
  • Buy
    • Customer - B2B2C
      • From Amount
        • Price Fix (Get Prices)
        • Calculate Price
        • Buy (Gold)
        • Buy (Silver)
        • Buy (Platinum)
      • From Total Price
        • Price Fix (Get Prices)
        • Buy (Gold)
        • Buy (Silver)
    • Partner - B2B
      • Price Fix (Get Prices)
        POST
      • Buy (Gold)
        POST
      • Buy (Silver)
        POST
    • Card Payment
      • Payment Get All Types
      • Card Payment Bin Query (Installments/Comissions)
      • Card Payment Price Fix (Get Prices)
      • Card Payment Buy (with card number)
      • Card Payment Buy (with card token)
      • Card Payment Get Order
  • Sell
    • Customer - B2B2C
      • Price Fix (Get Prices)
      • Sell (Gold)
      • Sell (Silver)
    • Partner - B2B
      • Price Fix (Get Prices)
      • Sell (Gold)
      • Sell (Silver)
  • Customers
    • Create Customer
      POST
    • Create Business Customer
      POST
    • Update Customer
      PATCH
    • Remove Customer Id
      DELETE
    • Get Customer
      GET
    • Customer Wallet Kyc - Get
      GET
    • Customer Wallet Kyc - Upsert
      POST
    • Customer Wallet Kyc - Bulk Upsert
      POST
  • Balances
    • Partner Balance
      GET
    • Customer Balance
      GET
    • Update Customer Cash Balance
      PATCH
    • Stats
      POST
    • Customer Balance 7d Stats
      GET
  • Card Storage
    • Card Storage List
      POST
    • Card Storage Add
      POST
    • Card Storage Delete
      DELETE
  • Delivery
    • Delivery - List Wallets
    • Delivery - Calculate
    • Delivery - Create (Pay With Cash)
    • Delivery - Create (Pay With Card Payment)
  • Product Prices
    GET
  • Get Orders
    GET
  • Get Order
    GET
  • Get Order (Alternative)
    POST
  • Partner Legal
    POST
  • Order Statusses
    GET
  1. Partner - B2B

Buy (Gold)

Testing
Testing Env
https://api.staging.mintedconnect.com
Testing Env
https://api.staging.mintedconnect.com
POST
https://api.staging.mintedconnect.com
/partner/order/digital/buy
Last modified:2023-06-14 19:49:43
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
api-version
string 
optional
Example:
2
x-client-id
string 
required
Default value: web
Default:
web
Accept-Language
string 
optional
Default:
tr
Body Params application/json
price_token
string 
required
Optional value
currency_code
enum<string> 
optional
Allowed values:
GBPUSDEURTRY
Default:
GBP
external_id
string 
required
items
array [object {2}] 
required
amount
integer 
optional
sku
string 
optional
Example
{
    "price_token": "{{price_token}}",
    "currency_code": "GBP",
    "external_id": "HYAQA0171",
    "items": [
        {
            "sku": "GAU",
            "amount": 1
        }
    ]
}

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/order/digital/buy' \
--header 'api-version: 2' \
--header 'api-version;' \
--header 'x-client-id;' \
--header 'Accept-Language: tr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "price_token": "",
    "currency_code": "GBP",
    "external_id": "HYAQA0171",
    "items": [
        {
            "sku": "GAU",
            "amount": 1
        }
    ]
}'

Responses

🟢200OK
application/json
Body
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
array[object (Order Schema) {17}] 
required
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
            }
        ]
    },
    "success": true,
    "code": 0,
    "message": ""
}
🟠422Parameter Error
🟠403Forbidden
🟠422Parameter Error(New Customer)
Previous
Price Fix (Get Prices)
Next
Buy (Silver)
Built with