Stancer.API.Disbursements (stancer v0.1.0)

Copy Markdown

Summary

Functions

POST /v2/disbursements/

GET /v2/disbursements/{id}

GET /v2/disbursements/

Functions

create(data)

@spec create(map()) :: {:ok, map()} | {:error, term()}

POST /v2/disbursements/

Parameters

  • amount (integer, optional)
  • card (string (matches ^card_[a-zA-Z0-9]{24}$), optional)
    • Example: "card_yWYfCSzsUUhr9KwMv7vuLZHX"
  • currency (string (2-3 chars), optional)
  • cvc (string (3-4 chars), optional)
  • date_of_birth (string (format: date), optional)

get(id)

@spec get(String.t()) :: {:ok, map()} | {:error, term()}

GET /v2/disbursements/{id}

list()

@spec list() :: {:ok, map()} | {:error, term()}

GET /v2/disbursements/