### Moonflow API Authentication Example (cURL) Source: https://www.postman.com/omolds/publico/collection/280k6sl/moonflow-api/index This snippet demonstrates how to authenticate with the Moonflow API using a cURL command. It shows how to include the 'moonflow-authorization' header with your API key for accessing protected resources. ```shell curl --location 'https://api.moonflow.ai/api/paymentorder/searchbydocument?documentTypeId=&documentNumber=&code="a=' \ --header 'moonflow-authorization: APIKEY;' ``` -------------------------------- ### Authentication and General Information Source: https://www.postman.com/omolds/publico/collection/280k6sl/moonflow-api/index This section covers the authentication method for the Moonflow API and provides details on response codes, document type catalogs, and currency catalogs. ```APIDOC ## Authentication The Moonflow API uses an Authorization Token sent in the header of each request. **Key:** `moonflow-authorization` **Value:** Your API Key, found in the platform under "Settings > General Settings > API Key". ### Request Example ```bash curl --location 'https://api.moonflow.ai/api/paymentorder/searchbydocument?documentTypeId=&documentNumber=&code="a=' \ --header 'moonflow-authorization: APIKEY;' ``` ## 1.1 Response Codes HTTP Status Codes used for responses: | Code | Description | |---|---| | `200` | **Success** - The content is available in the response body. | | `400` | **Bad Request Error** - Request returned an error, detail in content. | | `401` | **Unauthorized** - The Moonflow credentials provided are not valid. | | `403` | **Forbidden** - You do not have permissions to perform this action. | | `422` | **Unprocessable entity** - Request returned an error, detail in content. | | `500` | **Internal Server Error** - The detail of the error is available in the response body. | ## 1.2 Document Type Catalog | Country | Document Types | |---|---| | Argentina | 600 DNI, 601 Cédula de identidad, 602 CUIT/CUIL, 603 Licencia de conducir, 604 Pasaporte, 605 Otro | | Chile | 500 Cédula de identidad, 501 Registro único tributario, 502 Licencia de conducir, 503 Pasaporte, 599 Otro | | Colombia | 400 Cédula de ciudadanía, 401 Documento de identidad, 402 Cédula de extranjería, 403 Número de identificación personal, 404 Pasaporte, 405 Permiso especial de permanencia, 406 Permiso de protección temporal, 407 Número de identificación tributaria, 499 Otro | | Panamá | 300 CIP, 301 RUC, 302 Pasaporte, 399 Otro | | México | 200 RFC, 201 CURP, 202 Identificador Fiscal, 203 Pasaporte, 204 Licencia de conducir, 205 Referencia, 299 Otro | | Perú | 100 DNI - Documento Nacional de identidad, 101 CE - Carné de extranjería, 102 RUC, 103 Pasaporte, 104 Licencia de conducir, 199 Otro | | Other countries | 900 Documento de identidad, 901 Licencia de conducir, 902 Pasaporte, 903 Otros, 904 Referencia | ## 1.3 Currency Catalog | Currency | ISO Code | Symbol | |---|---|---| | US Dollar | USD | $ | | Euros | EUR | € | | Argentine Pesos | ARS | $ | | Boliviano | BOB | Bs. | | Uruguayan Peso | UYU | $ | | Brazilian Real | BRL | R$ | | Guarani | PYG | ₲ | | Canadian Dollar | CAD | $ | | Mexican Pesos | MXN | $ | | Colombian Pesos | COP | $ | | Costa Rican Colones | CRC | ₡ | | Peruvian Soles | PEN | S/ | | Cuban Pesos | CUP | $ | | Venezuelan Bolivares | VES | Bs. | | Lempiras | HNL | L | | Balboas | PAB | B/ | | Cordobas | NIO | C$ | | Dominican Pesos | DOP | $ | | Haitian Gourde | HTG | G | | Jamaican Dollar | JMD | $ | | Belize Dollar | BZD | $ | | Surinamese Dollar | SRD | $ | | Eastern Caribbean Dollar | XCD | $ | | Bahamian Dollar | BSD | $ | | Barbadian Dollar | BBD | $ | | Florin | AWG | ƒ | | Netherlands Antillean Guilder | ANG | ƒ | | Trinidadian Dollar | TTD | $ | ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.