{
	"info": {
		"_postman_id": "de1e7dfb-116e-4f96-8db7-8a6f6c0736e0",
		"name": "RevUp Partner API V1",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "40786162"
	},
	"item": [
		{
			"name": "Partner API -  Create Single Invoice",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default",
						"disabled": true
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"number\": \"INV-001\",\n    \"dueDate\": \"2024-09-30T14:15:22Z\",\n    \"status\": \"DRAFT\",\n    \"total\": 1,\n    \"subTotal\": 1,\n    \"items\": [\n        {\n            \"price\": 51.68,\n            \"quantity\": 1,\n            \"subTotal\": 0,\n            \"total\": 51.68\n        }\n    ],\n    \"customer\": {\n        \"firstName\": \"John\",\n        \"lastName\": \"Doe\",\n        \"email\": \"john.doe@example.com\"\n    },\n    \"memo\": \"string\",\n    \"attachPastDue\": true,\n    \"createdDate\": \"2024-11-30T14:15:22Z\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Cancel Invoice",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"type": "file",
							"src": "/Users/cubz/Downloads/bulk_upload - Success.csv"
						}
					]
				},
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/{{INVOICE_ID}}/cancel",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"{{INVOICE_ID}}",
						"cancel"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Get ̵Invoice By ID",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default",
						"disabled": true
					}
				],
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/{{INVOICE_ID}}",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"{{INVOICE_ID}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Update Invoice Status",
			"request": {
				"method": "PATCH",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"status\": \"PAID\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/update-status/{{INVOICE_ID}}",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"update-status",
						"{{INVOICE_ID}}"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Upload Receipt",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "formdata",
					"formdata": [
						{
							"key": "file",
							"contentType": "image/png",
							"type": "file",
							"src": "/Users/briancubero/Downloads/revup-demo-files/photo_2024-05-04_16-07-25 (2).jpg"
						}
					]
				},
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/{{INVOICE_ID}}/receipt",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"{{INVOICE_ID}}",
						"receipt"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Update Receipt Status",
			"request": {
				"method": "PATCH",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "[\n    {\n      \"file_name\": \"CQRB_1736000068\",\n      \"pop_receiving_account_number\": \"09175112228\",\n      \"total_amount\": \"51.68\"\n    }\n]",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/{{INVOICE_ID}}/receipt",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"{{INVOICE_ID}}",
						"receipt"
					]
				}
			},
			"response": []
		},
		{
			"name": "Partner API - Get All Receipts from Invoice",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "X-API-KEY",
						"value": "{{REVUP_PARTNER_KEY}}",
						"type": "default"
					},
					{
						"key": "Content-Type",
						"value": "application/json",
						"type": "default",
						"disabled": true
					}
				],
				"url": {
					"raw": "{{REVUP_PARTNER_API_DEV}}/invoice/{{INVOICE_ID}}/receipt",
					"host": [
						"{{REVUP_PARTNER_API_DEV}}"
					],
					"path": [
						"invoice",
						"{{INVOICE_ID}}",
						"receipt"
					]
				}
			},
			"response": []
		}
	]
}