Sha256: ce4af93c14ed7aad72947e67788bd68d1c8e0daf4b52bfec2d25b881ed8593b8

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

## Detailing charges

It's very simple to get details from a charge. You just need the id:

```ruby
params = {
  id: 1300
}

gerencianet = Gerencianet.new(options)
gerencianet.detail_charge(params: params)
```

As response, you will receive all the information about the charge (including if it belongs to a subscription or carnet):

```ruby
{
  "code": 200,
  "data": {
    "charge_id": 1300,
    "subscription_id": 12,
    "total": 2000,
    "status": "new",
    "custom_id": null,
    "created_at": "2015-05-14",
    "notification_url": "http://yourdomain.com",
    "items": [
      {
        "name": "Product 1",
        "value": 1000,
        "amount": 2
      }
    ],
    "history": [
      {
        "message": "Cobrança criada",
        "created_at": "2015-05-14 15:39:14"
      }
    ]
  }
}
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gerencianet-0.0.7 docs/charge-detailing.md
gerencianet-0.0.6 docs/charge-detailing.md