POST
/
label-requests
/
{id}
/
errors
curl --request POST \
  --url https://api.loopreturns.com/api/v1/label-requests/{id}/errors \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "reason": "INSUFFICIENT_FUNDS",
  "message": "Failed to generate a label, the origin address is invalid"
}'
{
  "reason": "INSUFFICIENT_FUNDS",
  "message": "Failed to generate a label, the origin address is invalid",
  "created_at": "2023-04-25T13:25:00-05:00"
}

Authorizations

X-Authorization
string
header
required

API Scope: "Developer Tools"

Path Parameters

id
integer
required

The unique identifier for the label, created by Loop.

Example:

67329889100573

Body

application/json
reason
enum<string>
required

The reason code associated with the label request error.

Available options:
INSUFFICIENT_FUNDS,
INVALID_ADDRESS,
Other
Example:

"INSUFFICIENT_FUNDS"

message
string

The message assocated with the label request error.

Example:

"Failed to generate a label, the origin address is invalid"

Response

200
application/json
OK
reason
enum<string>

The reason code associated with the label request error.

Available options:
INSUFFICIENT_FUNDS,
INVALID_ADDRESS,
Other
Example:

"INSUFFICIENT_FUNDS"

message
string

The message assocated with the label request error.

Example:

"Failed to generate a label, the origin address is invalid"

created_at
string

The date the label was created.

Example:

"2023-04-25T13:25:00-05:00"