Editar data de vencimento da cobrança

patch
https://api.stone.com.br/core/v5/charges/{charge_id}/due-date

Path Parameters

charge_idstringrequired

Código da cobrança.

Body

application/json
due_atstring(date)required

Data de vencimento.

Response

application/json

200

idstring

Example:ch_9R6419s6Btvp4ykO

codestring

Example:R8VI5WU79R

gateway_idstring

Example:efda8d57-50d8-4b19-b2d4-873bee2e1b62

amountinteger

Default:0

Example:14900000

statusstring

Example:pending

currencystring

Example:BRL

payment_methodstring

Example:boleto

due_atstring

Example:2017-04-04T00:00:00

created_atstring

Example:2017-04-04T21:34:32

updated_atstring

Example:2017-04-04T21:44:05

customerobject
Show Child Parameters
last_transactionobject
Show Child Parameters
metadataobject
Show Child Parameters
patch/charges/{charge_id}/due-date

Body

{ "due_at": "due_at" }
 
application/json

Editar método de pagamento

patch
https://api.stone.com.br/core/v5/charges/{charge_id}/payment-method

Path Parameters

charge_idstringrequired

Código da cobrança.

Body

application/json
update_subscriptionstring

Indica se o meio de pagamento da assinatura deve ser atualizado

payment_methodstringrequired

Meio de pagamento. Valores possíveis: credit_card, boleto, voucher, bank_transfer ou safety_pay

credit_cardobject

Dados sobre o pagamento com cartão de crédito (obrigatório caso payment_method seja credit_card).

Show Child Parameters
voucherobject

Dados sobre o pagamento com voucher (obrigatório caso payment_method seja voucher)

Show Child Parameters
boletoobject

Dados sobre o pagamento com boleto (obrigatório caso payment_method seja boleto).

Show Child Parameters
bank_transferobject

Dados sobre o pagamento com transferência entre contas bancárias. (obrigatório caso payment_method seja bank_transfer).

Show Child Parameters
Pixobject

Dados sobre o pagamento com Pix (obrigatório caso payment_method seja Pix).

Show Child Parameters
reuse_splitboolean

Informa se vamos repassar as regras de split para proxima transação

Response

application/json

200

idstring

Example:ch_PA2gLJYc9hDxRrXV

codestring

Example:DPRWS1C38N

gateway_idstring

Example:c22a0e61-2e3e-4317-b11f-08d03046a1a8

amountinteger

Default:0

Example:1490000

statusstring

Example:pending

currencystring

Example:BRL

payment_methodstring

Example:boleto

created_atstring

Example:2017-10-05T19:16:51Z

updated_atstring

Example:2017-10-05T19:18:39Z

customerobject
Show Child Parameters
last_transactionobject
Show Child Parameters
metadataobject
Show Child Parameters
patch/charges/{charge_id}/payment-method

Body

{ "payment_method": "boleto", "boleto": { "bank": "033", "instructions": "Pagar até o vencimento", "due_at": "2020-12-31" }, "reuse_split": true }
 
application/json

Retentar uma cobrança manualmente

post
https://api.stone.com.br/core/v5/charges/{charge_id}/retry

Path Parameters

charge_idstringrequired

Código da cobrança.

Response

application/json

200

idstring

Example:ch_exRAY21fvNFVD9EX

codestring

Example:8M2OT2SRX8

gateway_idstring

Example:c5d71b01-174e-453f-8563-fd089cf7b39b

amountinteger

Default:0

Example:14900000

statusstring

Example:failed

currencystring

Example:BRL

payment_methodstring

Example:credit_card

due_atstring

Example:2017-04-04T00:00:00

created_atstring

Example:2017-04-04T22:29:33

updated_atstring

Example:2017-04-04T22:29:54

customerobject
Show Child Parameters
last_transactionobject
Show Child Parameters
metadataobject
Show Child Parameters
post/charges/{charge_id}/retry
 
application/json

Confirmar cobrança (cash)

Para a confirmação de cobranças com meio de pagamento cash com o status pending.

post
https://api.stone.com.br/core/v5/charges/{charge_id}/confirm-payment

Path Parameters

charge_idstringrequired

Código da cobrança.

Body

application/json
amountinteger(int32)

Valor a ser confirmado. Caso não seja informado, será considerado o valor total da cobrança

codestring

Código da cobrança no sistema da loja. Irá atualizar o valor informado na criação da cobrança. Max: 52 caracteres

descriptionstring

Descrição

Response

application/json

200

idstring

Example:ch_7YBoBPWCVKS3QdyM

codestring

Example:WZQS3LHEKW

gateway_idstring

Example:42c243c4-0b52-49f3-ba92-e8661ebc7916

amountinteger

Default:0

Example:1490

statusstring

Example:paid

currencystring

Example:BRL

payment_methodstring

Example:credit_card

due_atstring

Example:2017-04-04T00:00:00

paid_atstring

Example:2017-04-04T20:06:14

created_atstring

Example:2017-04-04T20:05:39

updated_atstring

Example:2017-04-04T20:06:14

customerobject
Show Child Parameters
last_transactionobject
Show Child Parameters
metadataobject
Show Child Parameters
post/charges/{charge_id}/confirm-payment

Body

{}
 
application/json

Criar cobrança

post
https://api.stone.com.br/core/v5/charges.

Body

application/json
codestring

Código identificador da cobrança no sistema da loja.

amountinteger(int32)required

Valor da cobrança em centavos

currencystring

Moeda. Valores possíveis: BRL, ARS, BOB, CLP, **COP **, MXN, PYG, **USD **, UYU e EUR.

paymentobjectrequired

Dados sobre o pagamento. Saiba mais sobre pagamentos

customer_idstringrequired

Código do cliente.

customerobjectrequired

Dados do cliente. Obrigatório caso o customer_id não seja informado. Saiba mais sobre clientes.

metadatastring

Objeto chave/valor utilizado para armazenar informações adicionais sobre a cobrança. Saiba mais sobre metadata.

Response

application/json

200

idstring

Example:ch_kp64Edig1t79NajE

codestring

Example:28ZMCQWSW4

gateway_idstring

Example:909f4fb7-17a2-4753-a5de-80491ffd80d3

amountinteger

Default:0

Example:1490

statusstring

Example:pending

currencystring

Example:BRL

payment_methodstring

Example:credit_card

created_atstring

Example:2017-10-19T21:45:21Z

updated_atstring

Example:2017-10-19T21:45:21Z

customerobject
Show Child Parameters
last_transactionobject
Show Child Parameters
metadataobject
Show Child Parameters
post/charges.

Body

{ "amount": 1490, "customer": { "name": "Tony Stark", "email": "tony@email.com" }, "payment": { "payment_method": "credit_card", "credit_card": { "capture": false, "installments": 1, "statement_descriptor": "AVENGERS", "card": { "number": "4556859837525", "holder_name": "Tony Stark", "exp_month": 1, "exp_year": 30, "cvv": "558" } } }, "metadata": { "code": "123" } }
 
application/json