Skip to main content

Create order for IOS

POST 

/wc/orders/createIAP

Create order in app purchase

Request

Body

required

    customer_id integer
    Example: 41734
    status string
    Example: pending

    billing

    object

    first_name string
    Example: naufalhakm
    last_name string
    Example: xendit
    email string
    Example: naufal.arkademi@gmail.com
    phone string
    Example: 6281234596778

    coupon_lines

    object[]

  • Array [

  • code string
    Example: --
    discount integer
    Example: 0
  • ]

  • payment_method string
    Example: In app purchase (App Ios)
    payment_method_title string
    Example: ovo
    product_id integer
    Example: 11776606
    course_id number
    Example: course_id
    purchase_status string
    Example: tes
    transaction_date string
    Example: 12032022
    product_id_ios string
    Example: test
    purchase_id string
    Example: test
    error string
    Example: null
    local_verif string
    server_verif string
    verification_data string
    Example: app_store

Responses

successful order

Schema

    success boolean
    order_id integer
    Example: 856