Fetch Order

This endpoint is used to check the status of a collection order

Fetch order

This endpoint is used to fetch an order to verify its status

GET https://prod-order-exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/FetchOrder?partner_order_id=xx&partner_id=xx/

Order Status

Pending = newly created orders that has not been fulfilled in 45 mins

Completed = Order that has been fulfilled and a callback has been returned in 45 mins

Mismatched = this is when a user pays above or below the amount on the order.

Expired = Order that payment was made but callback wasnt returned in 45 mins

Abandoned = an order that a user hasnt paid into in over 45 mins

Claimed = in cases of mismatched and expired merchants can decide to claim the money paid

Query Parameters

Headers

{
  "status": "success",
  "id":"",
  "partner_id":"",
  "order_notify_url":"",
  "exchanger_user_id":"",
  "intrapay_merchant_id":""
  "messsage": "",
  "data": {
        "payment": {
            "status": "PENDING | PAID | REFUND"

            },
        "virtual_account": {
        "amount": "",
        "account_name": "",
        "bank_name": "",
        "account_number": ""
      },
     "order_details": {
     "status": "PENDING | COMPLETED | EXPIRED | CANCELED",
     "partner_order_id": "",
     "intrapay_order_reference": ""
     }

 }

}

Example Request- Code

const fetch = require('node-fetch');

fetch("https://exchanger-api.fuspay.finance/api/v1/no-auth/PartnerP2P/FetchOrder?partner_order_id=xxxxx", {
  "method": "GET",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer pk_partner_xxxx",
    "cookie": "connect.sid=s%253AoNBPv4ez8npeuKVKlS9KwX_1Dshiamlf.n8opjPuoF3XsU%252Be0VTLMUe6xzeAXmpCfQrpW9KW1KDs"
  }
})
  .then(response => console.log(response))
  .catch(err => console.error(er

Last updated