---
updatedAt: 2026-02-10T11:45:37.000Z
---

# Query payment status

This method is used to query/fetch the final status of a transaction by a merchant to the Beep server.

The payment-originating merchant will implement this API function as a web service with the following parameters.

A sample query request to **CPG** is also provided

> NB: It's optional to query for payment status using either beepTransactionID or payerTransactionID in NG (Nigeria), GH (Ghana) & ZM (Zambia).

### Request

| Parameter                         | Type   | Description                                                                | Required |
| :-------------------------------- | :----- | :------------------------------------------------------------------------- | :------- |
| countryCode                       | string | Country ISO code letter, i.e., **`KE`**,**`GH`**,**`TZ`**                  | yes      |
| payload                           | object |                                                                            |          |
| payload.credentials               | object |                                                                            |          |
| payload.credentials.username      | string | The  user name  you created on sign-in                                     | yes      |
| payload.credentials.password      | string | The Password you created on sign-in                                        | yes      |
| payload.packet                    | array  |                                                                            |          |
| payload.packet.beepTransactionID  | string | The unique reference ID generated by the Beep Server for this transaction. | no       |
| payload.packet.payerTransactionID | string | The unique **`transactionID`** generated by the bank for this transaction. | yes      |

```json
{
    "countryCode": "NG",
    "payload": {
        "credentials": {
             "username": "testuser",
            "password": "testpass" 
        },
        "packet": [
            {
                "payerTransactionID": "9b3e6093-5f2e-4aa8-8c8d-a9ced56b6097",
                "beepTransactionID": "387566457040408576"
            }
        ]
    }
}
```

***

### Response

```json Response

{
	"authStatus": {
		"authStatusCode": 131,
		"authStatusDescription": "Authentication was successful"
	},
	"results": [{
		"statusCode": 178,
		"statusDescription": "The transaction is pending acknowledgement from the client",
		"payerTransactionID": "yourUniqueID",
		"beepTransactionID": "ourUniqueID",
		"MSISDN": "25470000000",
		"payerClientCode": "SANDBOX",
		"receiptNumber": "[\"\"]",
		"receiverNarration": "[\"\"]",
		"totalRecordsPendingQuery": 0,
		"totalRecordsPendingAck": 0,
		"paymentExtraData": "{}"
	}]
}
```

Transaction status codes returned from the BEEP.pushPaymentStatus.

| statusCode | statusDescription                                             |
| :--------- | :------------------------------------------------------------ |
| 143        | Transaction ID not found                                      |
| 148        | Transaction delivered i.e. posted to 3rd party for processing |
| 178        | Pending transaction on queryPaymentStatus                     |
| 183        | Payment accepted i.e. Success                                 |
| 180        | Payment Rejected i.e. Failed                                  |
| 217        | Payment manually Accepted                                     |
| 216        | Payment manually Rejected                                     |
| 219        | Payment escalated                                             |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "payouts-querypaymentstatus",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api-approval.tingg.africa/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/v2/remittance/payments/query-payment-status": {
      "post": {
        "summary": "Query payment status",
        "description": "This method is used to query/fetch the final status of a transaction by a merchant to the Beep server.",
        "operationId": "remittance-query-payment-status",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "countryCode"
                ],
                "properties": {
                  "countryCode": {
                    "type": "string",
                    "default": "KE"
                  },
                  "payload": {
                    "type": "object",
                    "properties": {}
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Success": {
                    "value": "{\n\t\"authStatus\": {\n\t\t\"authStatusCode\": 131,\n\t\t\"authStatusDescription\": \"Authentication was successful\"\n\t},\n\t\"results\": [{\n\t\t\"statusCode\": 178,\n\t\t\"statusDescription\": \"The transaction is pending acknowledgement from the client\",\n\t\t\"payerTransactionID\": \"yourUniqueID\",\n\t\t\"beepTransactionID\": \"ourUniqueID\",\n\t\t\"MSISDN\": \"25470000000\",\n\t\t\"payerClientCode\": \"SANDBOX\",\n\t\t\"receiptNumber\": \"[\\\"\\\"]\",\n\t\t\"receiverNarration\": \"[\\\"\\\"]\",\n\t\t\"totalRecordsPendingQuery\": 0,\n\t\t\"totalRecordsPendingAck\": 0,\n\t\t\"paymentExtraData\": \"{}\"\n\t}]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "authStatus": {
                      "type": "object",
                      "properties": {
                        "authStatusCode": {
                          "type": "integer",
                          "example": 131,
                          "default": 0
                        },
                        "authStatusDescription": {
                          "type": "string",
                          "example": "Authentication was successful"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "statusCode": {
                            "type": "integer",
                            "example": 178,
                            "default": 0
                          },
                          "statusDescription": {
                            "type": "string",
                            "example": "The transaction is pending acknowledgement from the client"
                          },
                          "payerTransactionID": {
                            "type": "string",
                            "example": "yourUniqueID"
                          },
                          "beepTransactionID": {
                            "type": "string",
                            "example": "ourUniqueID"
                          },
                          "MSISDN": {
                            "type": "string",
                            "example": "25470000000"
                          },
                          "payerClientCode": {
                            "type": "string",
                            "example": "SANDBOX"
                          },
                          "receiptNumber": {
                            "type": "string",
                            "example": "[\"\"]"
                          },
                          "receiverNarration": {
                            "type": "string",
                            "example": "[\"\"]"
                          },
                          "totalRecordsPendingQuery": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "totalRecordsPendingAck": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "paymentExtraData": {
                            "type": "string",
                            "example": "{}"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Bad Request": {
                    "value": "{\n   \"authStatus\":{\n      \"authStatusCode\":131,\n      \"authStatusDescription\":\"Authentication  unsuccessful\"\n   },\n   \"results\":[\n      {\n         \"statusCode\":167,\n         \"statusDescription\":\"Bad Request - countryCode is missing\",\n         \"beepTransactionID\":-1,\n         \"invoiceNumber\":\"\",\n         \"payerTransactionID\":\"ec99b106-6cb7-4394-a510-1f53597a6a17\"\n      }\n   ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "authStatus": {
                      "type": "object",
                      "properties": {
                        "authStatusCode": {
                          "type": "integer",
                          "example": 131,
                          "default": 0
                        },
                        "authStatusDescription": {
                          "type": "string",
                          "example": "Authentication  unsuccessful"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "statusCode": {
                            "type": "integer",
                            "example": 167,
                            "default": 0
                          },
                          "statusDescription": {
                            "type": "string",
                            "example": "Bad Request - countryCode is missing"
                          },
                          "beepTransactionID": {
                            "type": "integer",
                            "example": -1,
                            "default": 0
                          },
                          "invoiceNumber": {
                            "type": "string",
                            "example": ""
                          },
                          "payerTransactionID": {
                            "type": "string",
                            "example": "ec99b106-6cb7-4394-a510-1f53597a6a17"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Forbidden": {
                    "value": "{\n   \"authStatus\":{\n      \"authStatusCode\":174,\n      \"authStatusDescription\":\"Request Not permitted\"\n   },\n   \"results\":[\n      {\n         \"statusCode\":174,\n         \"statusDescription\":\"Request Not permitted\",\n         \"beepTransactionID\":-1,\n         \"invoiceNumber\":\"\",\n         \"payerTransactionID\":\"ec99b106-6cb7-4394-a510-1f53597a6a17\"\n      }\n   ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "authStatus": {
                      "type": "object",
                      "properties": {
                        "authStatusCode": {
                          "type": "integer",
                          "example": 174,
                          "default": 0
                        },
                        "authStatusDescription": {
                          "type": "string",
                          "example": "Request Not permitted"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "statusCode": {
                            "type": "integer",
                            "example": 174,
                            "default": 0
                          },
                          "statusDescription": {
                            "type": "string",
                            "example": "Request Not permitted"
                          },
                          "beepTransactionID": {
                            "type": "integer",
                            "example": -1,
                            "default": 0
                          },
                          "invoiceNumber": {
                            "type": "string",
                            "example": ""
                          },
                          "payerTransactionID": {
                            "type": "string",
                            "example": "ec99b106-6cb7-4394-a510-1f53597a6a17"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Not Found": {
                    "value": "{\n   \"authStatus\":{\n      \"authStatusCode\":174,\n      \"authStatusDescription\":\"/payment Resource not found\"\n   },\n   \"results\":[\n      {\n         \"statusCode\":174,\n         \"statusDescription\":\"/payment Resource not found\",\n         \"beepTransactionID\":-1,\n         \"invoiceNumber\":\"\",\n         \"payerTransactionID\":\"ec99b106-6cb7-4394-a510-1f53597a6a17\"\n      }\n   ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "authStatus": {
                      "type": "object",
                      "properties": {
                        "authStatusCode": {
                          "type": "integer",
                          "example": 174,
                          "default": 0
                        },
                        "authStatusDescription": {
                          "type": "string",
                          "example": "/payment Resource not found"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "statusCode": {
                            "type": "integer",
                            "example": 174,
                            "default": 0
                          },
                          "statusDescription": {
                            "type": "string",
                            "example": "/payment Resource not found"
                          },
                          "beepTransactionID": {
                            "type": "integer",
                            "example": -1,
                            "default": 0
                          },
                          "invoiceNumber": {
                            "type": "string",
                            "example": ""
                          },
                          "payerTransactionID": {
                            "type": "string",
                            "example": "ec99b106-6cb7-4394-a510-1f53597a6a17"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```