Create a credential
Credentials
Create a credential
Creating a SAT credential will register the taxpayer in your account if it does not already exist.
POST
Create a credential
Authorizations
Your API key is available in the Production and Sandbox dashboards.
Body
application/json
Response
Credential resource response
SAT Credential IRI reference
Example:
"/credentials/91106968-1abd-4d64-85c1-4e73d96fb997"
Example:
"91106968-1abd-4d64-85c1-4e73d96fb997"
Available options:
ciec, efirma Example:
"ciec"
RFC (Registro Federal de Contribuyentes)
Required string length:
12 - 13Example:
"PEIC211118IS0"
Credential validation status:
| Value | Description |
|---|---|
waiting | Credential validation is temporarily disabled, usually because of an ongoing incident. The credential will be validated later. |
pending | Credential validation has been requested and is waiting to be processed. |
valid | The credential was accepted by SAT and can be used for extractions. |
invalid | SAT rejected the credential during validation. |
disabled | SAT reported the credential as disabled or otherwise unrecoverable during validation. |
deactivated | Deprecated. Legacy status retained for existing records. Use disabled for credentials that can no longer be used. |
error | Credential validation failed because of an unexpected error. |
Available options:
waiting, pending, valid, invalid, disabled, deactivated, error Example:
"pending"
Date and time the resource was created
Example:
"2020-01-01T12:15:00.000Z"
Date and time the resource was last updated
Example:
"2020-01-01T12:15:00.000Z"