Skip to main content

purchase

POST 

/v1/orders/purchase

purchase

Request

Body

    given_id string

    uuid

    amount integer

    required | integer | min:100

    currency string

    required | string | in:USD,EUR,GBP,AUD,CAD,JPY,BYR,SGD,SHP,SKK,SLL,SOS,SRD,SSP,STD,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,AED,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,ZMK,ZMW,BCH,BTC,JEP,GGP,IMP,XFU,GBX,CNH,EEK,GHS,LTL,LVL,MRO,MTL,TMM,JPY,ZWD,ZWL,ZWN,ZWR,VEF,UGX,UYU,UZS,VES,VND,VUV,WST,XAF,XAG,XAU,XBA,XBB,XBC,XBD,XCD,XDR,XOF,XPD,XPF,XPT,XTS,YER,ZAR,CDF,CHF,CLF,CLP,CNY,COP,CRC,CUC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EGP,ERN,ETB,FJD,FKP,GEL,GHS,GIP,AFN,ALL,AMD,ANG,AOA,ARS,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRU,MUR,MVR,MWK,MXN,MYR,MZN,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,KES,KGS,KHR,KMF,KPW,KRW

    description string

    required | string | max:1024

    transaction_type string

    required | string | default:internet | in:internet,merchant,moto

    source

    object

    required | hash

    type string

    required | string | in:card,apple_pay,google_pay,samsung_pay

    number string

    required | string | credit_card

    month integer

    required | integer | min:1 | max:12

    year integer

    required | integer | min:2000

    security_code string

    required | digits:3,4

    holder string

    string | min:1 | max:255

    auth

    object

    required | hash

    value string
    status string
    eci string
    version string
    ds_transaction_id string
    acs_transaction_id string
    ds_reference_number string
    acs_reference_number string
    tds_purchase_date string

    device

    object

    required | hash

    user_agent string

    required | string | max:1024

    ip_address string

    required | string | ip

    airline

    object

    hash

    reference string

    required_with:airline | alpha_num | min:6 | max:15

    new_agreement

    object

    hash

    type string

    required_with:new_agreement | string | in:unscheduled,recurring,registered,installment

    id string

    required_with:new_agreement | alpha_num_dash | min:1 | max:36

    expiry string

    date

    max_use integer

    integer | min:1 | max:999

    variability string

    string | in:fixed,variable | default:variable

    agreement_id string

    excluded_with:new_agreement | string | max:64

    additional_data

    object

    hash

    visa

    object

    hash

    authorization_characteristics_indicator string
    market_specific_indicator string

    mastercard

    object

    hash

    transaction_type_indicator string
    promotion_code string

    sub_merchant

    object

    hash

    id string

    required_with:sub_merchant | string | alpha_num_dash | min:1 | max:15

    registered_name string

    required_with:sub_merchant | string | min:1 | max:100

    trading_name string

    required_with:sub_merchant | string | min:1 | max:100

    email string

    required_with:sub_merchant | email

Responses

creates a new purchase order

Schema

    id string

    merchant

    object

    id string
    name string
    arabic_name string
    merchant_id string
    currency string
    amount integer
    captured_amount integer
    refunded_amount integer
    voided_amount integer
    description string
    created_at string
    updated_at string

    source

    object

    type string
    scheme string
    first_digits string
    last_digits string
    month integer
    year integer
    reauthorized_order_id nullable

    airline

    object

    reference string

    sub_merchant

    object

    id string
    registered_name string
    trading_name string
    email string

    agreement

    object

    id string
    agreement_id string
    type string
    first_order_id string
    max_use integer
    variability string
    expiry string
    created_at string
    updated_at string

    transactions

    object[]

  • Array [

  • id string
    status string
    type string
    source_type string
    reverse_reason nullable
    justification nullable
    reversed_transaction_id nullable
    message string
    response_code string
    retrieval_reference string
    stan string
    auth_code nullable
    created_at string
  • ]

Loading...