Skip to main content
POST

Overview

A B2B services payment answers a short list: who the buyer is, which invoice this is, the invoice total, a declaration, and the invoice itself. No identity document and no tax. Payments EximPe collects add one check after the payment, buyer_pan. This page is that list, and what happens once it is complete.
Same endpoint as Submit Payment Verification Details. One URL answers every verification ask — fields, documents, partial sends and the response shape all work identically. Only what a payment is asked for differs, and that is what this page covers.
Send details keyed by the same codes that Get Verification Requirements and the VERIFICATION_NEEDED webhook use. There is nothing to map between them — the GET names an item under code, the event names the same string in action_required_fields, and this endpoint takes it back under that key.
JSON only. fields is an object; documents is a list of {code, ref} naming files uploaded earlier through Upload Document. Files are never posted to this endpoint.

The loop

1

An event arrives

VERIFICATION_NEEDED lists what the payment owes, as a flat array of codes in action_required_fields. While the payment is still unclassified that list is a legacy order-field check and can name product_description and hs_code, which this flow never asks for — classify the payment, then read the real set from Get Verification Requirements.
2

You classify it, if nothing has

A VBA credit arrives unclassified. Send business_model and purpose_code before anything else can be checked.
3

You upload the invoice

Upload Document returns a ref.
4

You send what you have

Fields as a map, the invoice as {code, ref}. Partial is fine — later sends merge over earlier ones.
5

You read where the payment stands

The response says both: a status, and outstanding — the codes still owed after this write.

Classify it first

A payment with no business_model and purpose_code on its order has no requirement set, so nothing else about it can be validated. Send whichever of the two is missing:
They can ride along with everything else in one call, but sending them first is the simplest thing to do.
Send whichever of business_model and purpose_code is missing. Once set, sending a different value is a 400: Already set on the order; it cannot be changed here. Re-sending the same value is accepted.
Which codes are B2B services? S0802, S0803, S1005, S1009, S1010, S1013, S1015, S1016, S1017, S1105, S1106 — all against business_model: "B2B". They share one requirement set.

The complete body

Thirteen fields and one document, plus buyer_pan when it is owed:
S0802 — B2B services
The buyer here is the Indian remitter, not your customer abroad. These fields describe whoever in India paid you — the same party the credit came from. buyer_postal_code is stored on the order as an Indian PIN code, so send the remitter’s Indian address rather than your own overseas one.
Send invoice_amount (rupees) and declaration (boolean true); no tax. A string such as "true" is refused with ERR_DECLARATION_001.
Payments EximPe collects add one more field, buyer_pan. Once the payment is captured, the buying business’s PAN is checked with the issuer, and until it passes buyer_pan is listed among the outstanding items and the payment stays in ACTION_REQUIRED. Send it under fields like any other code, as a fourteenth entry — "buyer_pan": "AABCE1234F".The PAN must belong to the business named in buyer_name. Change buyer_name later and buyer_pan is owed again; a mismatch reads The name on this PAN doesn't match the order's buyer name. A personal PAN reads This is a personal PAN. A B2B payment needs the buying business's PAN.A PAN is checked during the call. A rejection is a 400 whose details.buyer_pan says why, and the rest of the call is still saved. If the check cannot run, the call is a 503 with ERR_BUYER_PAN_002; retry the same call. An order gets 5 PAN checks, after which the call answers ERR_BUYER_PAN_001 and you need to contact EximPe support. On a payment that does not owe one, buyer_pan answers Not a requirement of this payment.

Values

Values are strings unless noted; declaration is a boolean.
An unknown key is a 400, not a silent drop. A misspelled invoice_number that we quietly ignored would leave the payment waiting forever for a field you believe you sent. Every key is checked before any is written, so one typo cannot half-apply a call.
Omit a key rather than sending null or an empty string — a blank value is itself a 400, with the same reasoning.

Documents

One entry, naming the invoice’s checklist code and the ref you got from Upload Document: Sending the same code twice in one call is a 400. Sending it again in a later call is fine — the newer ref replaces the earlier row.
One citation covers every invoice on the payment. The citation names the code, and this flow has exactly one document type per code, so all the payment’s invoices are filed when the set completes — not just the one whose ref you sent. Upload a second invoice and it goes with them; you do not cite it, and you cannot leave it out.
waiver_reason is not accepted on this flow. No B2B services item is waivable, so there is nothing to discharge with a reason instead of a file. Sending one is a 400 reading This document cannot be waived., keyed by the document’s code.
top_up is ignored here. The shared request body accepts it, but it links further payments to a short one — an LRS concept. B2B services has none, so the field is read and discarded rather than refused. Do not send it expecting a link.

Partial sends are merged

Send three fields today and two tomorrow and you have sent five. Nothing you sent earlier is wiped by a later call, and a field’s newest value wins.
finalize defaults to true. It applies only to a complete set and never forces an incomplete one through, so a partial send is accepted either way — you do not have to set it. Pass finalize: false only to save without filing.
Once you have filed, sending is closed.

The response

Three keys, whatever you sent:
Three values, not four. A complete set either files — in_review — or is refused with a 400 naming what to fix. There is no action_required here; do not write a branch for a value you will never receive.

Completion

A complete B2B services set goes to verification when it is filed, and in_review says it got there.

Errors

Every refusal is a 400, whatever the reason, except a PAN check that could not run, which is a 503 (ERR_BUYER_PAN_002). The code inside the envelope is what tells refusals apart, not the status.
Branch on code, not on message. 40359 is shared with the other verification flows; message names which one refused you, so a classified B2B services payment reads Invalid B2B services request. The code is the stable part.Two cases read Invalid verification request. instead: any refusal before the payment is classified, when there is no flow to name, and a buyer_phone or invoice_number refused by the call that files.Not every refusal is 40359. A few carry a code of their own, listed above — they are the specific ones, and they say more than the shared code does. Treat any code you do not recognise as a 400 you should not retry unchanged.
A 400 on the send carries details keyed by the offending code, so one call reports every problem at once:

Checked on the send

Value rules run on the call that carries the value. They answer under 40359 with the code named in details:

Raised only by the call that files

Two things are only judged when a complete set is filed, because they compare against something we hold rather than check a value on its own. invoice_amount is checked against the credit, and is refused naming invoice_amount when the two are more than a paisa apart. invoice_number must be unique across your orders that have not failed, including an invoice number set when the order was created. An amount refusal reads Invoice amount must match the amount credited into the VBA (125000)., with the credit in brackets. A collision does not answer under 40359 — it carries its own code:
invoice_number must be unique across your orders that have not failed, including an invoice number set when the order was created. Re-using one from an earlier payment is refused here, not at the call that saved it — raise a new number and send that field again. Your details are still saved; fix the named code and re-send only that.
buyer_phone and invoice_number are also checked only by the call that files. A refusal answers under 40359, reads Invalid verification request., and keys details by the field:
  • buyer_phone must carry its country code, e.g. +919876543210.
  • invoice_number takes letters, digits, spaces, accented Latin letters and . , ' - / & _ ( ) : ; ! @ # $ % * + = < > [ ] { } | ~, up to 255 characters.
A finalizing call refused over the purpose code, the declaration, invoice_amount or a document sends VERIFICATION_NEEDED with ACTION_REQUIRED naming that code. A refused invoice number or PAN sends no event; the response is the only answer.

Get Verification Requirements

What this payment is asked for, and what is already satisfied.

Upload Document

Upload the commercial invoice and keep its ref.

B2B Services Verification

The whole flow, in order.

List Settlement Documents

The step that opens once the payment settles.

Authorizations

X-Client-ID
string
header
required

Client Application ID - Your unique application identifier used to authenticate API requests. You can find your Client ID in the Developer Settings section of the merchant dashboard.

X-Client-Secret
string
header
required

Client Secret Key - Your secret key used alongside the Client ID for secure authentication. Keep this confidential and never expose it in client-side code. Available in the Developer Settings section of the merchant dashboard.

X-Merchant-ID
string
header
required

Merchant Identifier - The unique ID for the merchant account. This is required for PSP (Payment Service Provider) merchants who manage multiple merchant accounts. You can find merchant IDs in the Merchant Management section of the dashboard.

Headers

X-API-Version
enum<string>
default:3.0.0

Optional. Send 3.0.0. It is not a credential. The response's X-API-Version header echoes the value you sent, or your account's default version if you send none.

Available options:
3.0.0

Path Parameters

payment_id
string
required

UID of the payment the details are for.

Body

application/json
fields
object

Answers keyed by checklist code, e.g. {"buyer_city": "Bengaluru", "invoice_number": "INV-2026-0041"}. Values are strings, numbers or booleans. Dates are YYYY-MM-DD; invoice_amount is a decimal string in rupees and declaration is a boolean. An unknown key is a 400 rather than a silent drop — a typo you never hear about would leave the payment waiting forever for a field you believe you sent. Omit a key rather than sending null or an empty string; a blank value is also a 400.

Example:
documents
object[]

Documents by reference, or waivers. Each entry names exactly one of ref and waiver_reason; sending both, neither, or the same code twice in one call is a 400.

persons
object[]

The people on an LRS remittance, sent beside fields and documents. Education (S0305, S1107): exactly one entry, the student; the payer is identified by remitter_pan in fields. Travel: every traveller, but only when your account collects traveller details. Sending persons again replaces the list. Not used on a B2B-services payment.

finalize
boolean
default:true

Whether to file a complete set for verification. Never forces an incomplete set through.

top_up
string[]

LRS only. The ids of the payments that top up this one, sent on the short payment's own call. Send the full list every time: an id left out is unlinked and [] removes every link. Once the details are on file it can be sent alone. Any refused id refuses the whole call. A B2B-services payment has no top-ups and ignores this key.

Example:

Response

Details received. The body says where the payment now stands and what is still owed.

success
boolean
Example:

true

message
string
Example:

"Verification details received"

data
object