Skip to content

Instantly share code, notes, and snippets.

@cesarockstar1985
Created August 3, 2023 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarockstar1985/5ef6f86fc6dca7dc1c36732868e7f497 to your computer and use it in GitHub Desktop.
Save cesarockstar1985/5ef6f86fc6dca7dc1c36732868e7f497 to your computer and use it in GitHub Desktop.
const body = {
'debt':
{
'docId': 'test',
'amount': {
'currency': 'PYG',
'value': 5000
},
'label': 'Deuda desde el postman',
'validPeriod': {
'start': '2018-01-07T15:46:23+0000',
'end': '2025-12-07T15:46:23+0000'
}
}
};
const resp = await instance.post('debts', body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment