Skip to main content

refund

POST 

/v1/orders/:id/refund

refund

Request

Path Parameters

    id stringrequired
    Example: 01904432-1f40-7c4d-a5ac-b738be2e532b

Body

    amount integer

    integer | min:1

Responses

refunds an 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 nullable

    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 string
    created_at string
  • ]

Loading...