Skip to content

Request the CFDI for a payment from the current month (owner)

POST
/v1/orgs/{org}/invoices/{invoice}/cfdi
curl --request POST \
--url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/invoices/inv_01hx0000000000000000000000/cfdi
org
required
string
/^org_[a-z0-9]{26}$/

Example

org_01hx0000000000000000000000
invoice
required
string
/^inv_[a-z0-9]{26}$/

Example

inv_01hx0000000000000000000000

Payment with its CFDI

Media typeapplication/json
object
id
required
string
stripeAccount
required
string
Allowed values: us mx
amountPaid
required

Cents, tax included

integer
currency
required
string
paidAt
required
string
cfdi
required
object
id
required
string
status
required
string
Allowed values: pending stamped failed cancelled
uuid
required
string
nullable
stampedAt
required
string
nullable
autoRetry
required

Temporary error: retried automatically

boolean
error
required

Translated stamping error, with the tax profile field that needs to be fixed

object
code
required
string
field
required
string
nullable
message
required
string
cause
required
string
fix
required
string
canRequestCfdi
required

Mexico account, current month and no CFDI yet

boolean

Example

{
"stripeAccount": "us",
"cfdi": {
"status": "pending"
}
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}