Replaces an existing webhook subscription.
JWT authentication security
OAuth Grant type, Private JWT
Overall ID of the trace, shared by every span in the trace.
The value is 64 or 128 bits long.
Position of the parent operation in the trace tree.
The value is 64 bits long.
The value is omitted when the span is the root of the trace tree.
Position of the current operation in the trace tree.
The value is 64 bits long.
Do not interpret the value: it may or may not be derived from the value of the TraceId.
Sampling decision.
Sampling is a mechanism to reduce the volume of data in the tracing system. In B3, sampling applies consistently per-trace: once the sampling decision is made, the same value must be consistently sent downstream. This means that either all or no spans share a trace ID.
The possible values are:
- 0 = Deny
- 1 = Accept
- d = Debug
Client ID header
Identifies a subscription for the current client
Details for creating or modifying a webhook subscription
{
"type": "payment-status",
"callbackUrl": "https://example.com/webhook",
"auth": {
"type": "mtls"
}
}{
"type": "payment-status",
"callbackUrl": "https://example.com/webhook",
"auth": {
"type": "oauth-privatejwt",
"url": "https://onetrade.dev.api.pagonxt.com/oauth/token",
"scopes": "resource.read resource.write",
"subscription": "00fe9330-9bdf-4cd4-ae8c-00cf22f736b2"
}
}Details for creating or modifying a webhook subscription.
Security information to load before calling the callback. Must set one of the valid types:
- mtls
- oauth-privatejwt
Security type for OAuth PrivateJWT authentication
Generic HTTPS URL with query parameters and fragment
Valid Universally Unique Identifier
Authorization scopes for OAuth PrivateJWT security
Security type for MTLS authentication
Generic HTTPS URL with query parameters and fragment
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Webhook subscription response
{
"id": "2507b89c-b680-46df-9505-e0b6f78cf295",
"type": "payment-status",
"callbackUrl": "https://example.com/webhook",
"auth": {
"type": "mtls"
},
"maxSequenceNumber": "1"
}{
"id": "00fe9330-9bdf-4cd4-ae8c-00cf22f736b2",
"type": "payment-status",
"callbackUrl": "https://example.com/webhook",
"auth": {
"type": "oauth-privatejwt",
"url": "https://onetrade.dev.api.pagonxt.com/oauth/token",
"scopes": "resource.read resource.write",
"subscription": "00fe9330-9bdf-4cd4-ae8c-00cf22f736b2"
},
"maxSequenceNumber": "1"
}Webhook subscription details.
entityIds represents the entities that this callback applies to, if not specified it applies all entities.
Security information to load before calling the callback. Must set one of the valid types:
- mtls
- oauth-privatejwt
Security type for OAuth PrivateJWT authentication
Generic HTTPS URL with query parameters and fragment
Valid Universally Unique Identifier
Authorization scopes for OAuth PrivateJWT security
Security type for MTLS authentication
Generic HTTPS URL with query parameters and fragment
Valid Universally Unique Identifier
Sequence number of the webhook call. Calls are numbered starting from 1 as they are sent.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Customer ID
Entity IDs.
Entity ID. Varies depending on Webhook type. For payment-status is payment id, for accounts-entries is account id and for collections-status is collection id.
Bad request
{
"errors": [
{
"code": "BAD_REQUEST",
"level": "FATAL",
"message": "Bad Request",
"description": "Error validating schema"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unauthorized
{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "Unauthorized",
"level": "ERROR",
"description": "Authorization credentials are missing or invalid"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Forbidden
{
"errors": [
{
"code": "FORBIDDEN",
"level": "FATAL",
"message": "Forbidden",
"description": "Logged in user is not authorized to access data"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Not found
{
"errors": [
{
"code": "NOT_FOUND",
"level": "FATAL",
"message": "Not Found",
"description": "Requested resource was not found but may be available later"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Not acceptable
{
"errors": [
{
"code": "NOT_ACCEPTABLE",
"level": "FATAL",
"message": "Not Acceptable",
"description": "Request content not acceptable"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Conflict
{
"errors": [
{
"code": "CONFLICT",
"level": "FATAL",
"message": "Conflict",
"description": "Request conflicts with the current state of the target resource"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Payload too large
{
"errors": [
{
"code": "PAYLOAD_TOO_LARGE",
"level": "FATAL",
"message": "Payload Too Large",
"description": "Payload is larger than the maximum size allowed by the server"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
URI too long
{
"errors": [
{
"code": "URI_TOO_LONG",
"level": "FATAL",
"message": "URI Too Long",
"description": "URI is longer than the maximum size allowed by the server"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unsupported media type
{
"errors": [
{
"code": "UNSUPPORTED_MEDIA_TYPE",
"level": "FATAL",
"message": "Unsupported Media Type",
"description": "Media format is not supported by the server"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Unprocessable entity
{
"errors": [
{
"code": "UNPROCESSABLE_ENTITY",
"level": "FATAL",
"message": "Unprocessable Entity",
"description": "Request was well formed but there are semantic errors"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Too many requests
{
"errors": [
{
"code": "TOO_MANY_REQUESTS",
"level": "ERROR",
"message": "Too Many Requests",
"description": "User has sent too many requests"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Internal server error
{
"errors": [
{
"code": "INTERNAL_SERVER_ERROR",
"level": "FATAL",
"message": "Internal server error",
"description": "Server has encountered an error"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Service unavailable
{
"errors": [
{
"code": "SERVICE_UNAVAILABLE",
"level": "ERROR",
"message": "Service unavailable",
"description": "Server is not ready to handle the request"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Gateway timeout
{
"errors": [
{
"code": "GATEWAY_TIMEOUT",
"level": "ERROR",
"message": "Gateway timeout",
"description": "Server cannot get a gateway response in time"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue
Default error
{
"errors": [
{
"code": "Error code",
"level": "ERROR",
"message": "Error message",
"description": "Error description"
}
]
}Data structure containing the details for errors
Array of errors
Data structure containing the error details
Unique alphanumeric human readable error code
Brief summary of the reported issue
Level of the reported issue.
The possible values are:
- ERROR
- FATAL
- INFO
- WARNING
Detailed description of the reported issue