POST
/
credentials
Create a credential
curl --request POST \
  --url https://api.syntage.com/credentials \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "type": "<string>",
  "rfc": "PEIC211118IS0",
  "password": "secret123"
}'
{
  "@context": "/contexts/Credential",
  "@id": "/credentials/91106968-1abd-4d64-85c1-4e73d96fb997",
  "@type": "Credential",
  "id": "91106968-1abd-4d64-85c1-4e73d96fb997",
  "type": "ciec",
  "rfc": "PEIC211118IS0",
  "status": "pending",
  "createdAt": "2020-01-01T12:15:00.000Z",
  "updatedAt": "2020-01-01T12:15:00.000Z"
}

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Body

application/json

CIEC

type
string
required
rfc
string
required

Taxpayer ID (Registro Federal de Contribuyentes)

Required string length: 12 - 13
Example:

"PEIC211118IS0"

password
string
required

CIEC's password

Minimum length: 8
Example:

"secret123"

Response

Credential resource response

@context
string
default:/contexts/Credential
@id
string<iri-reference>

SAT Credential IRI reference

Example:

"/credentials/91106968-1abd-4d64-85c1-4e73d96fb997"

@type
string
default:Credential
id
string<uuid>
Example:

"91106968-1abd-4d64-85c1-4e73d96fb997"

type
enum<string>
Available options:
ciec,
efirma
Example:

"ciec"

rfc
string

RFC (Registro Federal de Contribuyentes)

Required string length: 12 - 13
Example:

"PEIC211118IS0"

status
enum<string>

The initial status is always pending. After a few seconds, it changes to valid or invalid depending on SAT's response to our login attempt.

Available options:
pending,
valid,
invalid,
deactivated,
error
Example:

"pending"

createdAt
string

Date and time the resource was created

Example:

"2020-01-01T12:15:00.000Z"

updatedAt
string

Date and time the resource was last updated

Example:

"2020-01-01T12:15:00.000Z"