Payments Data Platform | Modernbanc

Responses

Modernbanc uses HTTP status codes to indicate the success or failure of API requests:

  • 2XX - indicates success.
  • 4XX - indicates an error that failed given the information provided (e.g. a required parameter was missing, frozen card, etc.).
  • 5XX - indicates an error with our servers.

Examples

{
  "result": ...data goes here,
  "pagination": "pagination data" // Optional
}

Exceptions

In some cases you'll get 200 responses while still having errors. For example with some endpoints like create workflow we allow you to save your progress despite it not being valid. The response in those situations will look like this.

{
  "result": ...workflow,
  "errors": ["Variable X is invalid", "Amount can't be more than 100."]
}