Payment Request
Creates a new payment request with the provided details
Request parameters
Responses
Custom metadata
The optional Metadata field lets merchants attach arbitrary key/value pairs to a payment request. Payhub stores the bag verbatim and returns it on every GET /payment/request/{id}.
Validation rules
Constraint | Limit |
|---|---|
Top-level shape | Must be a JSON object (or |
Number of pairs | Up to 20 per request |
Key length | 1.. 50 characters |
Key characters | Letters (A–Z, a–z), digits (0–9), and underscore ( |
Value length | Up to 500 characters (strings) |
Value type |
|
Requests violating any of the rules above are rejected with 400 Bad Request and a per-key error message; the response includes traceId in extensions.
null, omitted, and empty object
Sent on | Stored | Returned on | Sent on webhook |
|---|---|---|---|
field omitted |
|
| field omitted |
|
|
| field omitted |
|
|
|
|
| verbatim JSON | verbatim JSON | verbatim JSON |