Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 - create a GET /admin/billing/getInvoices #2

Open
glmaljkovich opened this issue Mar 20, 2019 · 0 comments
Open

2 - create a GET /admin/billing/getInvoices #2

glmaljkovich opened this issue Mar 20, 2019 · 0 comments

Comments

@glmaljkovich
Copy link
Contributor

GET api/admin/billing/getInvoices
It calls api/admin/billing/getChargeableStudents #2 and uses the Fake AFIP API to generate the invoices one by one and then return them. Errors must be handled and retry the request.

The Course prices are multiplied by 100, the AFIP API expects them to be floats.

Fake AFIP API

Request
route: api/afip
method: POST
body:

{
   nomYAp: String,
   dir: String ,
   importe: Number
}

Response

{
  data: {
     id: Number
  }
}

Get /admin/billing/getInvoices

Response expected:

{
data: [{
   BillingNumber: String // id from api/afip
   FirstAndLastName: String,
   Address: String ,
   price: String
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant