Gets your own subscription and the accepted offer, without creating a payment.

Requires active monthly sales, or staging enabled and a test payment that the server authorizes. Without this authorization, it answers 404. Requires a valid session of this product. It does not query the provider. Sandbox also requires a valid ticket for reading. Returns: { recurso, id, oferta_id, oferta{id,produto,versao,preco_centavos,moeda,ciclo,renovacao_automatica,compromisso_meses,cancelamento,acesso_pago,teste_dias,conversao_teste,beneficios,hash}, estado, simulado, pagamento_em, criado_em, atualizado_em, cancelamento_em, cancelado_em }

get/api/credito/assinaturas/{id}

Request

  • Base URL
    https://editalmd.com
  • URL
    https://editalmd.com/api/credito/assinaturas/{id}
  • Auth
    none declared

Path parameters

idstring required

Local subscription ID: 32 lowercase hexadecimal characters.

Query parameters

devstring

Signed, valid staging ticket. Optional; up to 512 characters in the query.

x402_devstring

Same ticket as dev. Use only one of these parameters per request.

recursostring

Product resource: up to 256 characters, without control characters. It filters the subscription of your own account; empty means a purchase per account.

Headers

X-X402-Devstring

Signed, valid staging ticket. Without it, the body flag does not authorize sandbox.

Response

{ recurso, id, oferta_id, oferta{id,produto,versao,preco_centavos,moeda,ciclo,renovacao_automatica,compromisso_meses,cancelamento,acesso_pago,teste_dias,conversao_teste,beneficios,hash}, estado, simulado, pagamento_em, criado_em, atualizado_em, cancelamento_em, cancelado_em }

recursostring required

Product resource: up to 256 characters, without control characters. It filters the subscription of your own account; empty means a purchase per account.

idstring required

Local ID of 32 hexadecimal characters; it identifies the lookup and the cancellation.

oferta_idstring required

ID of the accepted offer.

estadostring required

criando, inconclusiva, checkout, aguardando_pagamento, ativa, cancelando, cancelada, falhou or expirada.

simuladoboolean required

Environment that the server recorded: true for sandbox, false for production.

pagamento_emstring nullable required

Null for a subscription made through the API. Old records can have an Asaas HTTPS link in the checkout state.

criado_emstring required

UTC date and time when the subscription was created.

atualizado_emstring required

UTC date and time of the last change.

cancelamento_emstring nullable required

UTC date and time of the cancellation request, or null.

cancelado_emstring nullable required

UTC date and time of the confirmed cancellation, or null.

Changes

No recorded changes to this operation across all 29 revisions of this API.