Skip to content

Commit 37086fb

Browse files
Merge pull request killbill#645 from reshmabidikar/update-tax-docs
Aviate tax end to end workflow
2 parents d254482 + 52f3d3c commit 37086fb

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

userguide/aviate/aviate-tax.adoc

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -137,38 +137,20 @@ In brief, you would need to do the following:
137137

138138
1. Ensure that the aviate plugin is installed and the tax feature is enabled and configured as explained above.
139139
+
140-
2. Create an account via https://apidocs.killbill.io/account#create-an-account[API] or https://docs.killbill.io/latest/userguide_kaui#create_an_account[kaui].
140+
2. Create an account via https://apidocs.killbill.io/account#create-an-account[API] or https://docs.killbill.io/latest/userguide_kaui#create_an_account[kaui]. Ensure that the account has the correct country specified.
141141
+
142-
3. Create a billing account corresponding to the account. You can use the following API call. Ensure that the billing account includes tax registrations with the appropriate country code in the address.
143-
+
144-
[source, bash]
145-
----
146-
curl -X POST \
147-
-H "Content-Type: application/json" \
148-
-H "X-killbill-apiKey: aviate" \
149-
-H "X-killbill-apisecret: aviate" \
150-
-d '{
151-
"kbAccountId": "a0df1865-9c75-45c5-876f-cf3147c50a41",
152-
"taxRegistrations": [
153-
{
154-
"name": "John Doe",
155-
"exempt": false,
156-
"trn": "TRN-987654",
157-
"address": {
158-
"addressLine1": "123 Main Street",
159-
"addressLine2": "Suite 4B",
160-
"city": "Springfield",
161-
"state": "Illinois",
162-
"country": "US",
163-
"postalCode": "62701"
164-
}
165-
}
166-
]
167-
}' \
168-
http://127.0.0.1:8080/plugins/aviate-plugin/v1/ba
169-
----
170-
+
171-
4. Create a subscription corresponding to a product configured in Step 1. You can use https://apidocs.killbill.io/subscription#create-a-subscription[API] or https://docs.killbill.io/latest/userguide_kaui#_add_a_subscription[kaui]. The tax invoice item will automatically be generated.
142+
3. Create a subscription corresponding to a product configured in Step 1. You can use https://apidocs.killbill.io/subscription#create-a-subscription[API] or https://docs.killbill.io/latest/userguide_kaui#_add_a_subscription[kaui]. The tax invoice item will automatically be generated.
143+
144+
The following demo illustrates the end-to-end workflow:
145+
146+
++++
147+
<div>
148+
<script async src="https://js.storylane.io/js/v2/storylane.js"></script>
149+
<div class="sl-embed" style="position:relative;padding-bottom:calc(49.85% + 25px);width:100%;height:0;transform:scale(1)">
150+
<iframe loading="lazy" class="sl-demo" src="https://killbill.storylane.io/demo/wrf6s84rzr5z?embed=inline" name="sl-embed" allow="fullscreen" allowfullscreen style="position:absolute;top:0;left:0;width:100%!important;height:100%!important;border:1px solid rgba(63,95,172,0.35);box-shadow: 0px 0px 18px rgba(26, 19, 72, 0.15);border-radius:10px;box-sizing:border-box;"></iframe>
151+
</div>
152+
</div>
153+
++++
172154

173155

174156
Also refer to the https://docs.killbill.io/latest/aviate-tax-tutorial.html[Aviate Tax Tutorial] for further details.

0 commit comments

Comments
 (0)