request_id matches the Dub-Request-Id response header. Include it when you contact support about a specific request.
Error codes
bad_request
400
bad_request
400
- Problem: The
Authorizationheader doesn’t start withBearer, theDub-Versionheader isn’t a valid version, orsortBy=saleAmountis sent without aprogramIdfor a program that shares revenue with you. - Solution: Check that the request is properly formatted.
401
401
forbidden
403
forbidden
403
- Problem: The API key is missing a required scope, the partner account isn’t approved in the Dub Partner Network, a large program doesn’t list its customers to you yet, or you can’t message the program on
POST /messages. - Solution: Add the scopes named in the error message to your API key, or apply to the Dub Partner Network. You can message programs you’re enrolled in that have messaging turned on, and programs that have messaged you.
not_found
404
not_found
404
- Problem: The
programIdyou passed is a program you aren’t enrolled in, or Dub’s network program onGET /commissions. - Solution: Use the ID of a program you’re enrolled in. See List programs.
unprocessable_entity
422
unprocessable_entity
422
- Problem: A query parameter is invalid,
startingAfterandendingBeforewere both sent, or a pagination ID doesn’t exist, belongs to another partner, or is outside theprogramIdyou passed. - Solution: Read the error message, which names the invalid field, and fix that value. See Pagination.
rate_limit_exceeded
429
rate_limit_exceeded
429
- Problem: You have sent too many requests in a given amount of time.
- Solution: Wait for the number of seconds in the
Retry-Afterheader, then try again. See Rate limits.
internal_server_error
500
internal_server_error
500
- Problem: Something went wrong on Dub’s side.
- Solution: Try again later. If the problem persists, contact support with the request ID.