Request the CFDI for a payment from the current month (owner)
POST
/v1/orgs/{org}/invoices/{invoice}/cfdi
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/invoices/inv_01hx0000000000000000000000/cfdi';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/invoices/inv_01hx0000000000000000000000/cfdiParameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000invoice
required
string
Example
inv_01hx0000000000000000000000Responses
Section titled “Responses”Payment with its CFDI
Media typeapplication/json
object
id
required
string
stripeAccount
required
string
amountPaid
required
Cents, tax included
integer
currency
required
string
paidAt
required
string
cfdi
required
object
id
required
string
status
required
string
uuid
required
string
stampedAt
required
string
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
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" }}